﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Proggy.Web.Cms.Core.Seo.Service.Abstract;
using Proggy.Web.Cms.Core.Seo.Service.Concrete;
using Proggy.Web.Cms.Repositories.Published;
using Moq;
using Proggy.Web.Cms.Core.ContentModels;
using Proggy.Web.Cms.ExampleDomain.ContentModels;
using Proggy.Web.Cms.Core.Seo.Service.Entities;

namespace Proggy.Web.Cms.Seo.Tests
{
    [TestClass]
    public class Test_xml_sitemap_service
    {
        //ISeoSiteMapService _service = new SeoSiteMapService();
        //IPublishedContentRepository _repo;

        /// <summary>
        /// Constructor
        /// </summary>
        public Test_xml_sitemap_service()
        {
            // get mock repo
            var mockRepo = new Mock<IPublishedContentRepository>();

            // set up get content
            mockRepo.Setup(m => m.GetTypedPublishedContent<ProggyCoreAddressableContentModelBase>(true)).Returns(this.returnContentModels());
        }

        private IQueryable<ProggyCoreAddressableContentModelBase> returnContentModels()
        {
            // start list
            var list = new List<ProggyCoreAddressableContentModelBase>();

            // TODO: mock list

            return list.AsQueryable();
            
        }

        [TestMethod]
        public void Test_convert_content_model_to_Seo_type()
        {
            
        }
    }
}
